package com.canxi.earn.app;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaIgnore;
import com.canxi.common.annotation.Log;
import com.canxi.common.annotation.RepeatSubmit;
import com.canxi.common.core.controller.BaseController;
import com.canxi.common.core.domain.R;
import com.canxi.common.core.page.TableDataInfo;
import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;
import com.canxi.common.enums.BusinessType;
import com.canxi.common.utils.poi.ExcelUtil;
import com.canxi.earn.domain.bo.CxFunsBo;
import com.canxi.earn.domain.vo.CxFunsVo;
import com.canxi.earn.service.ICxFunsService;
import lombok.RequiredArgsConstructor;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 功能列
 *
 * @author ruoyi
 * @date 2024-09-04
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/app/earn/funs")
public class CxAppFunsController extends BaseController {

    private final ICxFunsService iCxFunsService;


/**
     * 查询功能列列表
     */
@SaIgnore
    @GetMapping("/list")
    public R<Map<String,List<CxFunsVo>>> list(CxFunsBo bo) {
    bo.setStatus("1");
        return R.ok(iCxFunsService.queryAppCxFunsAll(bo));
    }


}
